<template>
  <k-view class="stock-knowledge-link">
    <k-text class="knowledge-link-text">{{ knowledgeLinkText }}</k-text>
    <k-text class="knowledge-link-btn" @click="goInfo">{{ knowledgeLinkButton }}</k-text>
  </k-view>
</template>

<script>
import { jumpByUrl } from '@/utils';
import { sendClickStat } from '@/utils/stat';
import { PAGEID } from '@/config/stat';
export default {
  data() {
    return {
      knowledgeLinkText: '了解更多公司健康度相关知识',
      knowledgeLinkButton: '点击查看 >',
    };
  },
  methods: {
    goInfo() {
      sendClickStat(`${PAGEID.STOCK}.intro.click`);
      jumpByUrl({ name: 'intro', query: { id: 'nervous_score' } });
    },
  },
};
</script>

<style lang="less">
.stock-knowledge-link {
  background: rgba(51, 119, 255, 0.05);
  padding: 16px;
  margin: 32px 0px;
  box-sizing: border-box;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  .knowledge-link-text,
  .knowledge-link-btn {
    font-size: 28px;
    color: #3377ff;
    font-weight: 400;
  }
}
</style>
